﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    /// <summary>
    /// Author: Sissi Zeng
    /// Date:2012-08-08 12:50
    /// Use to accept search condition data from UI
    /// </summary>
    public class Condition
    {
        /// <summary>
        /// Condition Fields of Web Page 
        /// </summary>
        private string _CourseName;

        /// <summary>
        /// CourseName
        /// </summary>
        public string CourseName
        {
            get { return _CourseName; }
            set { _CourseName = value; }
        }
        private int _CourseStatus;
        /// <summary>
        /// CourseStatus
        /// </summary>
        public int CourseStatus
        {
            get { return _CourseStatus; }
            set { _CourseStatus = value; }
        }
        private string _TeacherName;
        /// <summary>
        /// TeacherName
        /// </summary>
        public string TeacherName
        {
            get { return _TeacherName; }
            set { _TeacherName = value; }
        }
        private string _LevelName;
        /// <summary>
        /// LevelName
        /// </summary>
        public string LevelName
        {
            get { return _LevelName; }
            set { _LevelName = value; }
        }

        /// <summary>
        /// Constructor
        /// no parameter
        /// </summary>
        public Condition()
        {

        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="CourseName">CourseName</param>
        /// <param name="CourseStatus">CourseStatus</param>
        /// <param name="TeacherName">TeacherName</param>
        /// <param name="LevelName">CourseName</param>
        public Condition(string CourseName, int CourseStatus, string TeacherName, string LevelName) {
            _CourseName = CourseName;
            _CourseStatus = CourseStatus;
            _TeacherName = TeacherName;
            _LevelName = LevelName;
        }
    }
}
